package com.lyl.momanapp.activity;

import android.content.Intent;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;

import com.lyl.momanapp.R;
import com.lyl.momanapp.util.view.MyBaseActivity;

/**
 * 名字 梁亚龙
 * 时间 2017/9/26.
 * QQ邮箱 503934353@qq.com
 */

public class UserResetActivity extends MyBaseActivity {


    private EditText mPWD;
    private EditText mPhone;
    private Button mBut;

    @Override
    public void initUI() {
        setContentView(R.layout.activity_user_reset);
        mPWD = ((EditText) findViewById(R.id.reset_pwd));
        mPhone = (EditText) findViewById(R.id.reset_phone);
        mBut = ((Button) findViewById(R.id.reset_login));

    }

    @Override
    public void initData() {
        mBut.setOnClickListener(this);
    }

    @Override
    public void addListeners() {

    }
    @Override
    public void onClick(View view) {
            switch (view.getId()){
                case  R.id.reset_login:
                    Intent intent = new Intent(UserResetActivity.this, UserLoginActivity.class);

                    intent.putExtra("name", mPhone.getText().toString().trim());
                    intent.putExtra("pwd", mPWD.getText().toString().trim());
                    setResult(1,intent);
                    finish();
                    break;
            }
    }
}
